<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
	<base href="<%=request.getContextPath()+"/"%>">
	<title>无标题文档</title>
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<link href="css/select.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.idTabs.min.js"></script>
	<script type="text/javascript" src="js/select-ui.min.js"></script>
	<script type="text/javascript" src="editor/kindeditor.js"></script>
	<script type="text/javascript">
	$(document).ready(function(e) {
		$(".select1").uedSelect({
			width : 345
		});

	});
</script>
	<script type="text/javascript">
		// 获取页面初始化数据
		$(function () {
			// 获取页面初始化数据
			$.get("ptu/EmployeeServlet?method=empFindMgr", function (result) {
				for (var i in result) {
					if (result[i].empId == ${requestScope.emp.mgrid}) {
						$("#mgr").append(result[i].realName);
						return;
					}
				}
			}, "json")
		})
	</script>
</head>

	<body>

		<div class="place">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">人事管理</a></li>
				<li><a href="#">员工信息详情</a></li>
			</ul>
		</div>

		<div class="formbody">

			<div class="formtitle"><span>基本信息</span></div>

			<ul class="forminfo">
				<li>
					<label>用户名</label>
					<label>${emp.empId}</label>
				</li>
				<li>
				<li>
					<label>真实姓名</label>
					<label>${emp.realName}</label>
				</li>
				<li>
					<label>性别</label>
					<c:if test="${emp.sex == 1}">
						男
					</c:if>
					<c:if test="${emp.sex == 0}">
						女
					</c:if>
				</li>
				<li>
					<label>出生日期</label>
					<label><fmt:formatDate value="${emp.hireDate}" pattern="yyyy-MM-dd"></fmt:formatDate> </label>
				</li>
				<li>
				<li>
					<label>入职时间</label>
					<label><fmt:formatDate value="${emp.hireDate}" pattern="yyyy-MM-dd"></fmt:formatDate> </label>
				</li>
				<li>
					<label>离职时间</label>
					<label><fmt:formatDate value="${emp.leaveDate}" pattern="yyyy-MM-dd"></fmt:formatDate> </label>
				</li>
				<li>
					<label>是否在职</label>
					<c:if test="${emp.onDuty == 1}">
						是
					</c:if>
					<c:if test="${emp.onDuty == 0}">
						否
					</c:if>
				</li>
				<li>
					<label>所属部门<b>*</b></label>
					<label>
						${emp.deptname}
					</label>
				</li>
				<li>
					<label>所属岗位<b>*</b></label>
					<label>
						${emp.pname}
					</label>
				</li>
				<li>
					<label>直接上级<b>*</b></label>
					<label id="mgr"></label>
				</li>
				</li>
				<li>
					<label>联系方式</label>
					<label>${emp.phone}</label>
				</li>
				<li>
					<label>QQ号</label>
					<label>${emp.qq}</label>
				</li>
				<li>
					<label>紧急联系人信息</label>
					<label>${emp.emerContactPerson}</label>
				</li>
				<li>
					<label>身份证号</label>
					<label>${emp.idCard}</label>
				</li>
				<li>
					<label>&nbsp;</label>
					<input type="button" class="btn" onclick="javascript:history.back(-1);" value="返回">
				</li>
			</ul>

		</div>

	</body>

</html>